package com.wicket.okroperation.dal.po.mbg;

import com.baomidou.mybatisplus.annotation.*;
import com.wicket.okroperation.common.annotations.LikeFlag;
import com.wicket.okroperation.common.annotations.OrderFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

/**
 * 授权证书信息表，安全记录
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("oms_software_authorization")
public class OmsSoftwareAuthorization extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 是否主证书 TRUE:是 FALSE:否
   */
  @TableField(value = "is_main_authorization")
  @NotNull(message = "是否主证书不能为空")
  @ApiModelProperty("是否主证书")
  private String isMainAuthorization;

  /**
   * 授权证书ID
   */
  @TableId(value = "authorization_id", type = IdType.UUID)
  @NotNull(message = "authorizationId不能为空")
  private String authorizationId;

  /**
   * 是否已启用部署 TRUE:是 FALSE:否
   */
  @TableField(value = "is_deployment_enabled")
  @NotNull(message = "是否已启用部署不能为空")
  @ApiModelProperty("是否已启用部署")
  private String isDeploymentEnabled;

  /**
   * 授权证书名称
   */
  @TableField(value = "authorization_name")
  @NotNull(message = "授权证书名称不能为空")
  @ApiModelProperty("授权证书名称")
  private String authorizationName;

  /**
   * 租户空间ID
   */
  @TableField(value = "authorization_space_id")
  @NotNull(message = "租户空间ID不能为空")
  @ApiModelProperty("租户空间ID")
  private String authorizationSpaceId;

  /**
   * 空间简称
   */
  @TableField(value = "space_short_name")
  @ApiModelProperty("空间简称")
  private String spaceShortName;

  /**
   * 域名地址
   */
  @TableField(value = "dns_addresses")
  @ApiModelProperty("域名地址")
  private String dnsAddresses;

  /**
   * IP地址
   */
  @TableField(value = "ip_addresses")
  @ApiModelProperty("IP地址")
  private String ipAddresses;

  /**
   * 服务器机器码
   */
  @TableField(value = "server_mac_code")
  @ApiModelProperty("服务器机器码")
  private String serverMacCode;

  /**
   * 开通钥匙ID
   */
  @TableField(value = "sch_open_record_id")
  @NotNull(message = "开通钥匙ID不能为空")
  @ApiModelProperty("开通钥匙ID")
  private String schOpenRecordId;

  /**
   * 开通钥匙标识
   */
  @TableField(value = "sch_open_record_code")
  @NotNull(message = "开通钥匙标识不能为空")
  @ApiModelProperty("开通钥匙标识")
  private String schOpenRecordCode;

  /**
   * 开通钥匙类型标识
   */
  @TableField(value = "authorization_key_type_code")
  @NotNull(message = "开通钥匙类型标识不能为空")
  @ApiModelProperty("开通钥匙类型标识")
  private String authorizationKeyTypeCode;

  /**
   * 开通对象ID
   */
  @TableField(value = "authorization_object_id")
  @NotNull(message = "开通对象ID不能为空")
  @ApiModelProperty("开通对象ID")
  private String authorizationObjectId;

  /**
   * 开通对象类型编码 TENANT_SPACE:租户空间 ORG:组织 EVA_THEME:评价主题 EVA_TEMP:评价模板 PLATFORM:平台
   */
  @TableField(value = "appl_obj_type")
  @ApiModelProperty("开通对象类型编码")
  private String applObjType;

  /**
   * 配置方案ID
   */
  @TableField(value = "authorization_scheme_id")
  @NotNull(message = "配置方案ID不能为空")
  @ApiModelProperty("配置方案ID")
  private String authorizationSchemeId;

  /**
   * 冗余开通对象名称
   */
  @TableField(value = "applex_name")
  @ApiModelProperty("冗余开通对象名称")
  private String applexName;

  /**
   * 授权类型 CYCLE_TIME:周期时间型 FIXED_TIME:固定时间型 QUANTITY:数量型
   */
  @TableField(value = "scheme_authorization_type")
  @NotNull(message = "授权类型不能为空")
  @ApiModelProperty("授权类型")
  private String schemeAuthorizationType;

  /**
   * 授权数量
   */
  @TableField(value = "authorization_num")
  @ApiModelProperty("授权数量")
  private String authorizationNum;

  /**
   * 授权开始时间
   */
  @TableField(value = "authorization_start_time")
  @ApiModelProperty("授权开始时间")
  private Date authorizationStartTime;

  /**
   * 授权截止时间
   */
  @TableField(value = "authorization_end_time")
  @ApiModelProperty("授权截止时间")
  private Date authorizationEndTime;

  /**
   * 授权单位
   */
  @TableField(value = "authorization_unit")
  @ApiModelProperty("授权单位")
  private String authorizationUnit;

  /**
   * 部署类型编码 SAAS:SAAS部署 LOCALITY:本地化部署
   */
  @TableField(value = "deploy_type_code")
  @ApiModelProperty("部署类型编码")
  private String deployTypeCode;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @TableField(value = "subject_life_cycle")
  @NotNull(message = "主体生命周期不能为空")
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 是否存档 TRUE:是 FALSE:否
   */
  @TableField(value = "is_archive")
  @NotNull(message = "是否存档不能为空")
  @ApiModelProperty("是否存档")
  private String isArchive;

  /**
   * 操作人就职记录ID
   */
  @TableField(value = "operation_induction_id")
  @NotNull(message = "操作人就职记录ID不能为空")
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 创建人就职记录ID
   */
  @TableField(value = "create_induction_id")
  @NotNull(message = "创建人就职记录ID不能为空")
  @ApiModelProperty("创建人就职记录ID")
  private String createInductionId;

  /**
   * 发布人就职记录ID
   */
  @TableField(value = "release_induction_id")
  @ApiModelProperty("发布人就职记录ID")
  private String releaseInductionId;

  /**
   * 存档人就职记录ID
   */
  @TableField(value = "archive_induction_id")
  @ApiModelProperty("存档人就职记录ID")
  private String archiveInductionId;

  /**
   * 操作时间
   */
  @TableField(value = "operate_time")
  @NotNull(message = "操作时间不能为空")
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 创建时间
   */
  @TableField(value = "create_time")
  @NotNull(message = "创建时间不能为空")
  @ApiModelProperty("创建时间")
  private Date createTime;

  /**
   * 发布时间
   */
  @TableField(value = "release_time")
  @ApiModelProperty("发布时间")
  private Date releaseTime;

  /**
   * 存档时间
   */
  @TableField(value = "archive_time")
  @ApiModelProperty("存档时间")
  private Date archiveTime;

  /**
   * 是否作废 TRUE:是 FALSE:否
   */
  @TableField(value = "is_valid")
  @NotNull(message = "是否作废不能为空")
  @ApiModelProperty("是否作废")
  private String isValid;

  /**
   * 创建于空间ID
   */
  @TableField(value = "space_id")
  @NotNull(message = "创建于空间ID不能为空")
  @ApiModelProperty("创建于空间ID")
  private String spaceId;

  /**
   * 创建于联盟应用ID
   */
  @TableField(value = "app_id")
  @NotNull(message = "创建于联盟应用ID不能为空")
  @ApiModelProperty("创建于联盟应用ID")
  private String appId;
}
